package com.talent;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

import com.talent.cloud.web.helper.SpringBootHelper;

/**
 * 框架启动器
 * @SpringBootApplication 是  @Configuration,@EnableAutoConfiguration和 @ComponentScan 合集
 * @author Huangjp
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class CodeImageApplication extends SpringBootServletInitializer{

    public static void main(String[] args) {
        SpringBootHelper.boot(CodeImageApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(this.getClass());
    }

}
